package com.hsgene.authority.service.api.impl;

import com.hsgene.authority.service.api.OperationOrganizationService;
import com.hsgene.common.util.exception.CommonErrorCode;
import com.hsgene.common.util.result.ApiResult;
import com.hsgene.common.util.support.Pagination;
import com.hsgene.user.dto.orginazation.DepartmentDto;
import com.hsgene.user.dto.orginazation.OrganizationDto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;


/**
 * @author wangbing
 * @version 1.0, 2018/11/7
 */
@Component
public class OperationOrganizationServiceImpl implements OperationOrganizationService {

    private final static Logger LOGGER = LoggerFactory.getLogger(OperationOrganizationServiceImpl.class);

    @Override
    public ApiResult<OrganizationDto> findOrganization(String orgId, String orgType) {
        LOGGER.error("用户服务不可用");
        return ApiResult.fail(CommonErrorCode.USER_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult<Pagination<DepartmentDto>> queryDepartment(Integer page, Integer size, String departmentName, String companyName) {
        LOGGER.error("用户服务不可用");
        return ApiResult.fail(CommonErrorCode.USER_SERVICE_NOT_AVAILABLE);
    }
}
